package design.patterns.behavioral.chainofresponsibility;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/4/10 16:54
 */

/**
 * 责任链模式
 */
public class Client {
    public static void main(String[] args) {
        ExamineAndApprove examineAndApprove = new M1();
        examineAndApprove.setExamineAndApprove(new M2());
        examineAndApprove.judge();
    }
}
